//日历打卡接口封装
import request from '../../utils/request';

//日历数据接口封装
export function calendarApi() {
    return {
        signIn: (data: object) => {
            return request({
                url: '/pc/task/list',
                method: 'post',
                data,
            });
        },
    };
}

//日历打卡新增接口封装
export function takeAddApi() {
    return {
        signIn: (data: object) => {
            return request({
                url: '/pc/task/save',
                method: 'post',
                data,
            });
        },
    };
}

//日历打卡编辑回显接口封装
export function takeEditApi() {
    return {
        signIn: (data: object) => {
            return request({
                url: '/pc/task/detail',
                method: 'post',
                data,
            });
        },
    };
}